package com.luban.hs.config;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @Author: hs
 * @Description:
 * @Date: Create in 14:47 2019/2/26
 */
@Component
public class MyListener implements ApplicationListener<ApplicationEvent> {
    /**
     * Handle an application event.
     *
     * @param event the event to respond to
     */
    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        System.out.println("接受时间."+ event.getClass());
    }
}
